package org.springblade.tms.module.home.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springblade.core.log.annotation.ApiLog;
import org.springblade.core.secure.annotation.PreAuth;
import org.springblade.core.tool.api.R;
import org.springblade.tms.module.home.HomeVo;
import org.springblade.tms.module.home.base.HomeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @projectName: BladeX
 * @package: org.springblade.tms.module.home.controller
 * @className: HomeController
 * @author: yr
 * @description: 首页接口
 * @date: 2022/3/23 16:36
 */
@RestController
@RequestMapping("home")
@Api(value = "首页接口-yr", tags = "首页接口-yr")
public class HomeController {
	@Resource
	private HomeService homeService;

	@ApiLog("首页")
	@GetMapping("/home")
	@ApiOperationSupport(order = 1)
	@ApiOperation(value = "首页")
	public R<HomeVo> home() {
		return homeService.home();
	}
}
